<div class="form">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'member-position-form',
        'enableAjaxValidation' => false,
    ));
    ?>
    <p class="note">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->errorSummary($model); ?>
    <?php
    foreach (Yii::app()->user->getFlashes() as $key => $message) {
        echo '<div class="flash-' . $key . '">' . $message . "</div>\n";
    }
    ?>
    <div class="row">
        <?php echo $form->labelEx($model, 'no_of_positions'); ?>
        <?php echo $form->textField($model, 'no_of_positions', array('size' => 10, 'maxlength' => 10)); ?>
        <?php echo $form->error($model, 'no_of_positions'); ?>
    </div>    

    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Buy' : 'Save'); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->